package com.j180.springboot_2.service.impl;

import com.j180.springboot_2.bean.Person;
import com.j180.springboot_2.dao.IPersonDao;
import com.j180.springboot_2.service.IPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PersonServiceImpl implements IPersonService {
    @Resource
   private IPersonDao iPersonDao;
    @Override
    public List<Person> showALL() {

        return iPersonDao.getAll();
    }
}
